--[[
	add_event的例子，process 就是处理具体的请求调用
]]
local filename = "hi.lua"

local skynet = require "skynet"
local filelog = require "filelog"

-- 此处可以不需要
-- local service = nil
local CMD = {
	-- service = nil
}
-- process 里面处理传过来的请求， 这里是hi请求
function CMD.process( rid, ... )
	-- if not service then
	-- 	service = CMD.service
	-- end
	print("line17 rid =", rid)
	local a = ...
	for k,v in pairs(a) do
		print("line19", k,v)
	end
	return {foo = "this return from gatenode Agent :hi, ".. rid .. " -- "}
end

return CMD